package org.arrow.db.pojo;

import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import javax.persistence.UniqueConstraint;

import org.hibernate.annotations.GenericGenerator;

/**
 * CodeUserTitle entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "code_user_title", catalog = "hip_spr_tap", uniqueConstraints = @UniqueConstraint(columnNames = "TITLE_NAME"))
public class CodeUserTitle implements java.io.Serializable {

	// Fields

	private Long titleId;
	private String titleName;
	private String titleDescription;
	private Boolean enable;
	private Date createDate;
	private Date lastModifyDate;

	// Constructors

	/** default constructor */
	public CodeUserTitle() {
	}

	/** minimal constructor */
	public CodeUserTitle(Long titleId, String titleName, Boolean enable,
			Date createDate, Date lastModifyDate) {
		this.titleId = titleId;
		this.titleName = titleName;
		this.enable = enable;
		this.createDate = createDate;
		this.lastModifyDate = lastModifyDate;
	}

	/** full constructor */
	public CodeUserTitle(Long titleId, String titleName,
			String titleDescription, Boolean enable, Date createDate,
			Date lastModifyDate) {
		this.titleId = titleId;
		this.titleName = titleName;
		this.titleDescription = titleDescription;
		this.enable = enable;
		this.createDate = createDate;
		this.lastModifyDate = lastModifyDate;
	}

	// Property accessors
	@GenericGenerator(name = "generator", strategy = "increment")
	@Id
	@GeneratedValue(generator = "generator")
	@Column(name = "TITLE_ID", unique = true, nullable = false)
	public Long getTitleId() {
		return this.titleId;
	}

	public void setTitleId(Long titleId) {
		this.titleId = titleId;
	}

	@Column(name = "TITLE_NAME", unique = true, nullable = false, length = 256)
	public String getTitleName() {
		return this.titleName;
	}

	public void setTitleName(String titleName) {
		this.titleName = titleName;
	}

	@Column(name = "TITLE_DESCRIPTION", length = 512)
	public String getTitleDescription() {
		return this.titleDescription;
	}

	public void setTitleDescription(String titleDescription) {
		this.titleDescription = titleDescription;
	}

	@Column(name = "ENABLE", nullable = false)
	public Boolean getEnable() {
		return this.enable;
	}

	public void setEnable(Boolean enable) {
		this.enable = enable;
	}

	@Temporal(TemporalType.DATE)
	@Column(name = "CREATE_DATE", nullable = false, length = 19)
	public Date getCreateDate() {
		return this.createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	@Temporal(TemporalType.DATE)
	@Column(name = "LAST_MODIFY_DATE", nullable = false, length = 19)
	public Date getLastModifyDate() {
		return this.lastModifyDate;
	}

	public void setLastModifyDate(Date lastModifyDate) {
		this.lastModifyDate = lastModifyDate;
	}

}